import { combineReducers } from 'redux';
import { moudelInfo } from '../components/nav/Redux.jsx';

const appReducer = combineReducers({
    moudelInfo
});

const reducer = (state, action) => {
    if (action.type === 'userLogout') {
        state = undefined;
    }
    return appReducer(state, action)
}

export default reducer;